<template>
  <a-result status="404" title="404" sub-title="您登录的身份与账号不匹配">
    <template #extra>
      <a-button type="primary" @click="$router.push({ path: '/' })">
        返回首页
      </a-button>
      <a-button type="danger" @click="logout">
        重新登陆
      </a-button>
    </template>
  </a-result>
</template>

<script>
import store from '@/store'
export default {
  name: '404',
  data () {
    return {
    }
  },
  methods: {
    logout () {
      store.dispatch('Logout').then(() => {
        window.location.reload()
      })
    }
  }
}
</script>

<style scoped>

</style>
